// 定义接口 ComputerAverage
public interface ComputerAverage {
    double average(double number1, double number2);
}

// 定义计算器类 ComputerMachine
class ComputerMachine {
    // 类方法 getAverage
    public static void getAverage(ComputerAverage computerAverage, double number1, double number2) {
        double average = computerAverage.average(number1, number2);
        System.out.printf("%.2f\n", average);
    }
}

